########################################################
# This application is used for Multiplication calculation
# - You can enter two numbers, then output result
########################################################

# numInput can take your two numbers
def numInput():
    firstNum = int(input('Enter first number: '))
    secondNum = int(input('Enter second number: '))
    return firstNum, secondNum

# cal is used for calculate your numbers


def cal(a, b):
    return a*b

# printTable is used for print the multiplication table


def printTable():
    first, _ = numInput()
    resultList = []
    for i in range(1, first+1):
        j = 1
        while j <= i:
            result = str(j)+" * "+str(i)+" = "+str(cal(j, i))
            resultList.append(result)
            j += 1
        print(resultList)
        resultList.clear()


def main():
    printTable()


if __name__ == '__main__':
    main()


# 完成的不错
